package com.eemint;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**** 
 *  Copyright (C), 2019,12, eemint
 *  File name and path : com.eemint.YunduoApiApplication.java
 *  Author : Dallas,    
 *  Version : 1.0,    
 *  First complete date : 2019/12/24 15:35  
 *  Description :  应用启动类
 *  History:  nothing
 *
 ***/
@SpringBootApplication(scanBasePackages = {"com.eemint"})
@Slf4j
public class EEmintApiApplication extends SpringBootServletInitializer {

    /**
     * Function:  main;
     * Author :  Dallas,
     * Version : 1.0,
     * First complete date : 2019/12/24 15:35;
     * Description :  应用入口主方法
     * History: nothing
     * Param and Description :
     *
     * @param args
     * @return:void
     **/
    public static void main(String[] args) {
        log.info("项目yunduo-api开始启动！！！");
        SpringApplication.run(EEmintApiApplication.class, args);
        log.info("项目yunduo-api启动完成！！！");
    }

    /**
     * Function:  configure;
     * Author :  Dallas,
     * Version : 1.0,
     * First complete date : 2019/12/26 17:04;
     * Description : 应用配置方法
     * History: nothing
     * Param and Description :
     *
     * @param application
     * @return:org.springframework.boot.builder.SpringApplicationBuilder
     **/
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(EEmintApiApplication.class);
    }
}
